package com.xc.h05.controller.lishenao;

import com.xc.h05.entity.ShouyeFind;
import com.xc.h05.service.lishenao.ShouyeFindService;
import com.xc.h05.util.R;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.*;

import java.util.List;

@RestController
@CrossOrigin
public class ShouyeFindController {
    @Autowired
    private ShouyeFindService shouyeFindService;
    @GetMapping("/shouyefindByname")
    public R findByname(@RequestParam String consultName){
        List<ShouyeFind> list=shouyeFindService.findByname(consultName);
        return R.ok(list);
    }
}
